package io.renren.modules.nuaa.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.renren.common.utils.DateUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
* 新闻管理
*
* @author whc 15953295779@126.com
* @since 3.0 2023-10-31
*/
@Data
@ApiModel(value = "新闻管理")
public class TNewsDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Long id;
    @ApiModelProperty(value = "模块ID")
    private Integer categoryId;
    @ApiModelProperty(value = "模块名称")
    private String categoryName;
    @ApiModelProperty(value = "标题")
    private String title;
    @ApiModelProperty(value = "内容")
    private String content;
    @ApiModelProperty(value = "邀请码")
    private String inviteCode;
    @ApiModelProperty(value = "新闻主图、专家头像")
    private String img;
    @ApiModelProperty(value = "副标题、专家姓名")
    private String subTitle;
    @ApiModelProperty(value = "备注、专家职务")
    private String remark;
    @ApiModelProperty(value = "发布时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date pubDate;
    @ApiModelProperty(value = "创建者")
    private String creator;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date createDate;
    @ApiModelProperty(value = "更新者")
    private String updater;
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date updateDate;
    @ApiModelProperty(value = "地址")
    private String place;
    @ApiModelProperty(value = "是否截止")
    private boolean ifCutOff ;

    private Integer sort;
}